<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#config errmsg="" --><!-- saved from url=(0022)http://help.adobe.com/ -->
<html lang="en-us">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <meta name="lang" content="en-us" />
        <meta name="area" content="livedocs" />
        <title>InDesign CS4 * Create nested styles</title>
        <meta name="product" content="$product" />
        <meta name="productv" content="" />
        <meta name="keywords" content="" />
        <script type="text/javascript" language="Javascript" charset="UTF-8"><!--[CDATA[
        var currentTreeNode = "WSE33E49F9-94CE-4043-AA51-4761408A63F4a.html";
// ]]--></script>
<script src="terms.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="help.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script>  <script src="utilities.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="event.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="treeview.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="toc.js" language="Javascript" type="text/javascript" charset="UTF-8">..</script> 
<script type="text/javascript">
<!--[CDATA[
var headId = document.getElementsByTagName("head")[0];         
if (use_ie_6_behavior) {
    var linkId = document.createElement("link");
    linkId.href = "content-ie6.css";
    linkId.rel = "stylesheet";
    linkId.type = "text/css";
    headId.appendChild(linkId);
}
// ]]-->
</script>
<!--#include virtual="/livedocs/ssi/globalheader.ssi" -->
        <link rel="stylesheet" type="text/css" href="tree.css" />
        <link rel="stylesheet" type="text/css" href="content-fonts.css" />
        <link rel="stylesheet" type="text/css" href="content-hyperlinks.css" />
        <link rel="stylesheet" type="text/css" href="content.css" />
        <link rel="stylesheet" type="text/css" href="localeSpecific.css" />
    </head>
    <body id="content_body" onload="window.focus();">
        <a name="top"></a><div id="mnemonic">
            <div class="InDesign"><table><tr><td class="banner">InDesign CS4</td><td class="pod"><img src="images/PDF.gif" width="16" height="16" hspace="15" valign="50%" />&#160;&#160;
                     <a title="PDF" href="http://help.adobe.com/en_US/InDesign/6.0/indesign_cs4_help.pdf">
                         PDF (adobe.com) 
                    </a></td></tr></table></div>
        </div>
        <div id="searchbar">
<!-- BEGIN SEARCH CONTENT -->
            <form class="search_form" id="search" name="search" action="search.html" target="_self">
                <img src="images/search.png" />
<script type="text/javascript">
<!--[CDATA[
function clearSearch(){
    if (document.search.q.value == terms_AHV_SEARCH_BUTTON){document.search.q.value = ""}; 
}
document.write('<input class=\"search_input\" \
        name=\"q\" \
        id=\"q\" \
        type=\"text\" \
        maxlength=\"256\" \
        value=\"' + terms_AHV_SEARCH_BUTTON + '\" onclick=\"clearSearch()\"><\/input>'); 
// ]]-->


</script> 
            </form>
        </div>
<!-- BEGIN PAGE CONTENT WRAPPER -->
        <div id="page_content_wrapper">
<!-- BEGIN PAGE WRAPPER -->
<table id="page_content_table">
<tr>
<td id="col1">
<!-- BEGIN IONCOMMENTCOUNT -->
            <div id="ionComCount">
            </div>
<!-- END IONCOMMENTCOUNT -->
<!-- BEGIN GROUP TOC WRAPPER -->
            
<!-- END GROUP TOC WRAPPER -->
<!-- BEGIN NAV WRAPPER -->
            <div id="group_toc">
<script type="text/javascript">
<!--[CDATA[
if ( typeof(terms_BOOK_SHORT) != 'undefined' ) {
  document.write("<p>" + terms_BOOK_SHORT + "<\/p>");
}
// ]]-->


</script> 
            </div>
            <div id="nav_content">
            </div>
<!-- END NAV WRAPPER -->
</td>
<td id="col2">
<!-- BEGIN CONTENT WRAPPER -->
<!-- BEGIN BREADCRUMBS -->
            
            <div id="breadcrumb">
                
<ul class="navigation"><li class="prev"><a accesskey="p" class="prev" href="WS3C8C4732-1EF5-4578-AD06-5C048D95D9CCa.html" title="Apply a character style to a drop cap"><img src="images/blank.gif" alt="Previous" width="17" height="17" /></a></li><li class="next"><a accesskey="n" class="next" href="WS6F1E524C-8F74-4331-A813-33D08F983E94.html" title="Create GREP styles"><img src="images/blank.gif" alt="Next" width="17" height="17" /></a></li></ul><div class="hierarchy"><a href="WSCF4C9C54-6350-4bbe-9D0D-BDF0016D6C83a.html">Styles</a> /
     <a href="WSE33E49F9-94CE-4043-AA51-4761408A63F4a.html"><b>Drop caps and nested styles</b></a> 
     </div>

            </div>
<!-- END BREADCRUMBS -->
            <div id="content_wrapper">
<!-- BEGIN PAGE TITLE -->
                <h1>
                    Create nested styles
                </h1>
<!-- END PAGE TITLE -->
                <br clear="both" /><div id="minitoc"><div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl"><div class="tr"><div><h3>Contents [<a href="#" onclick="return toggleMiniToc('minitoc-links', this);" class="hideLink">Hide</a>]</h3><ul id="minitoc-links"><li><p><a href="#WS9735134E-51A1-44c4-BE57-3BE3F646EF4Fa"><h4 class="topictitle4">Create one or more nested styles</h4>
</a></p></li><li><p><a href="#WSEC071421-7DC3-4fbd-A1A3-5BE9A63B846E"><h4 class="topictitle4">Create nested line styles</h4>
</a></p></li><li><p><a href="#WSD9A877C5-812B-4a43-8051-C6DFC213CC31a"><h4 class="topictitle4">Loop through nested styles</h4>
</a></p></li><li><p><a href="#WS28EF28D6-D414-44c8-8145-1FE946ABCA1Fa"><h4 class="topictitle4">Nested style character style options</h4>
</a></p></li><li><p><a href="#WS86ADF980-01D4-4414-9CA0-4AED102789D7a"><h4 class="topictitle4">End a nested style</h4>
</a></p></li><li><p><a href="#WS0602BC12-CF95-4e5a-BCDD-305983A978ADa"><h4 class="topictitle4">Remove the formatting of a nested style</h4>
</a></p></li></ul></div></div><br clear="both" /></div></div></div></div></div></div></div></div><br clear="both" /><div><div class="section"><p>You can specify character-level formatting
for one or more ranges of text within a paragraph or line. You can
also set up two or more nested styles to work together, one taking
over where the previous one ends. For paragraphs with repetitive
and predictable formatting, you can even loop back to the first
style in the sequence.</p>
<p>Nested styles are especially useful
for run-in headings. For example, you can apply one character style
to the first letter in a paragraph and another character style that
takes effect through the first colon&#160;(:). For each nested
style, you can define a character that ends the style, such as a
tab character or the end of a word.</p>
<div class="fignone"><a href="#" onclick="return showHideImage('sy_04', this);">View full size graphic</a><img alt="" id="sy_04" src="images/sy_04.png" /><div class="figdesc">In this example, the Number character style formats the first
word, and the Run-in character style formats text through the first
colon.</div><br /></div></div>
</div>
<div id="WS9735134E-51A1-44c4-BE57-3BE3F646EF4Fa" class="nochunk"><a name="WS9735134E-51A1-44c4-BE57-3BE3F646EF4Fa"></a><h3 class="topictitle3">Create one or more nested styles</h3><div><ol><li><span>Create
one or more character styles that you want to use to format text. </span></li>
<li><span>Do one of the following:</span><ul><li><p>To add nested styles to a paragraph style,
double-click the paragraph style, and then click Drop Caps And Nested
Styles.</p>
</li>
<li><p>To add nested styles to a single paragraph, choose
Drop Caps And Nested Styles from the Paragraph panel menu. </p>
<div class="note"><span class="notetitle">Note:  </span>For
best results, apply nested styles as part of paragraph styles. If
you apply nested styles as local overrides to a paragraph, subsequent
editing or formatting changes in the nested style can produce unexpected
character formatting in the styled text.</div>
</li>
</ul>
</li>
<li><span>Click New Nested Style one or more times.</span></li>
<li><span>Do any of the following for each style, and then click&#160;OK:</span><ul><li><p>Click the character style area, and then
select a character style to determine the appearance of that section
of the paragraph. If you haven’t created a character style, choose
New Character Style and specify the formatting you want to use.</p>
</li>
<li><p>Specify the item that ends the character style formatting.
You can also type the character, such as a colon (:) or a specific
letter or number. You cannot type a word. </p>
</li>
<li><p>Specify how many instances of the selected item
(such as characters, words, or sentences) are required.</p>
</li>
<li><p>Choose Through or Up To. Choosing Through includes
the character that ends the nested style, while choosing Up To formats
only those characters that precede this character.</p>
</li>
<li><p>Select a style and click the up button&#160;<img src="images/P_Up_Sm_N.png" /> or
down button&#160;<img src="images/P_Down_Sm_N.png" /> to
change the order of the styles in the list. The order of the styles
determines the sequence in which the formatting is applied. The
formatting defined by the second style begins where the formatting
of the first style concludes. If you apply a character style to
the drop cap, the drop-cap character style acts as the first nested
style.</p>
</li>
</ul>
</li>
</ol>
</div></div>
<div id="WSEC071421-7DC3-4fbd-A1A3-5BE9A63B846E" class="nochunk"><a name="WSEC071421-7DC3-4fbd-A1A3-5BE9A63B846E"></a><h3 class="topictitle3">Create nested line styles</h3><div><div class="section"><p>You
can apply a character style to a specified number of lines in a
paragraph. As with nested styles, you can set up two or more nested
line styles to work together, and you can create a repeating sequence.</p>
<p>Attributes
applied by nested line styles can co-exist with attributes applied
by nested styles. For example, a nested line style can apply a color
while a nested style can apply italics. If both set conflicting
settings of the same attribute, such as red and blue, the nested
style takes precedence over the nested line style.</p>
</div>
<ol><li class="stepexpand"><span>Create
one or more character styles that you want to use to format text. </span></li>
<li class="stepexpand"><span>Do one of the following:</span><ul><li><p>To add nested line styles to a paragraph
style, double-click the paragraph style, and then click Drop Caps
And Nested Styles.</p>
</li>
<li><p>To add nested line styles to a single paragraph,
choose Drop Caps And Nested Styles from the Paragraph panel menu. </p>
</li>
</ul>
</li>
<li class="stepexpand"><span>Click New Nested Line Style one or more times.</span></li>
<li class="stepexpand"><span>Click the character style area, and then select a character
style to determine the appearance of that section.</span></li>
<li class="stepexpand"><span>Specify the number of paragraph lines you want the character
style to affect.</span> <p>Select a style and click the up button&#160;<img src="images/P_Up_Sm_N.png" /> or
down button&#160;<img src="images/P_Down_Sm_N.png" /> to
change the order of the styles in the list. The order determines
the sequence in which the formatting is applied.</p>
</li>
<li class="stepexpand"><span>Click&#160;OK.</span></li>
</ol>
</div></div>
<div id="WSD9A877C5-812B-4a43-8051-C6DFC213CC31a" class="nochunk"><a name="WSD9A877C5-812B-4a43-8051-C6DFC213CC31a"></a><h3 class="topictitle3">Loop through nested styles</h3><div><div class="section"><p>You can repeat a series of two or more nested
styles throughout a paragraph. A simple example would be to alternate
red and green words in a paragraph. Or, in nested line styles you
could alternate red and green lines in a paragraph. The repeating
pattern remains intact even if you add or remove words in the paragraph.</p>
</div>
<ol><li class="stepexpand"><span>Create the character styles you want to use.</span></li>
<li class="stepexpand"><span>Edit or create a paragraph style, or place the insertion
point in the paragraph you want to format.</span></li>
<li class="stepexpand"><span>In the Drop Caps And Nested Styles section or dialog
box, click New Nested Style (or New Nested Line Style) at least
twice and choose settings for each style.</span></li>
<li class="stepexpand"><span>Do either of the following:</span> <ul><li><p>For nested styles, click New Nested Style again,
choose [Repeat] in the character style area, and specify how many
nested styles will be repeated.</p>
</li>
<li><p>For nested line styles, click New Nested Line Style again,
choose [Repeat] in the character style area, and specify how many
lines will be repeated.</p>
</li>
</ul>
<p>In some cases, you may want
to skip the first style or styles. For example, an events calendar
paragraph may include “This Week’s Events” followed by days of the
week and their events. In this case, you could create five nested
styles: one for “This Week’s Events,” one each for the day, event,
and event time, and a final style with a [Repeat] value of 3, thereby
excluding the first nested style from the loop.</p>
<p>The [Repeat]
item should be the last in the list. Any nested style below [Repeat] is
ignored.</p>
<p><div class="fignone"><a href="#" onclick="return showHideImage('sy_nest', this);">View full size graphic</a><img alt="" id="sy_nest" src="images/sy_nest.png" /><div class="figdesc">Looping through nested styles</div><br /></div></p>
</li>
<li class="stepexpand"><span>Click OK.</span></li>
</ol>
</div></div>
<div id="WS28EF28D6-D414-44c8-8145-1FE946ABCA1Fa" class="nochunk"><a name="WS28EF28D6-D414-44c8-8145-1FE946ABCA1Fa"></a><h3 class="topictitle3">Nested style character style options</h3><div><div class="section"><p>To
determine how a nested character style ends, select any of the following:</p>
<div class="tip"><img src="images/tip_help.png" />If you don’t want the character to be included
in the nested style formatted, choose Up To instead of Through when
you define the nested style.</div><dl><dt class="dlterm">Sentences</dt>
<dd>Periods, question marks, and exclamation points indicate
the end of a sentence. If a quotation mark follows the punctuation,
it is included as part of the sentence.</dd><p class="dlseparator"></p><dt class="dlterm">Words</dt>
<dd>Any space or white space character indicates the end of a
word.</dd><p class="dlseparator"></p><dt class="dlterm">Characters</dt>
<dd>Any character other than zero-width markers (for anchors,
index markers, XML tags and so on) is included. <div class="note"><span class="notetitle">Note:  </span>If you
select Characters, you can also type a character, such as a colon
or a period, to end the nested style. If you type multiple characters,
any of those characters will end the style. For example, if your
run-in headings end with a hyphen, colon, or question mark, you
can type <kbd class="userinput">-:?</kbd> to end the nested style where
any of these characters appears.</div>
</dd><p class="dlseparator"></p><dt class="dlterm">Letters</dt>
<dd>Any character that does not include punctuation, white space,
digits, and symbols.</dd><p class="dlseparator"></p><dt class="dlterm">Digits</dt>
<dd>The Arabic numerals 0–9 are included.</dd><p class="dlseparator"></p><dt class="dlterm">End Nested Style Character</dt>
<dd>Extends the nested style up to or through the appearance
of the End Nested Style character you insert. To insert this character, choose
Type&#160;&gt; Insert Special Character&#160;&gt; Other&#160;&gt;
End Nested Style Here.</dd><p class="dlseparator"></p><dt class="dlterm">Tab Characters</dt>
<dd>Extends the nested style up to or through the tab character
(not the tab setting).</dd><p class="dlseparator"></p><dt class="dlterm">Forced Line Break</dt>
<dd>Extends the nested style up to or through the forced line break.
(Choose Type&#160;&gt; Insert Break Character&#160;&gt;
Forced Line Break.)</dd><p class="dlseparator"></p><dt class="dlterm">Indent To Here Character</dt>
<dd>Extends the nested style up to or through the Indent To Here
character. (Choose Type&#160;&gt; Insert Special Character&#160;&gt;
Other&#160;&gt; Indent To Here.)</dd><p class="dlseparator"></p><dt class="dlterm">Em Spaces, En Spaces, or Non-breaking Spaces</dt>
<dd>Extends the nested style up to or through the space character.
(Choose Type&#160;&gt; Insert White Space&#160;&gt; <var class="varname">[space character]</var>.)</dd><p class="dlseparator"></p><dt class="dlterm">Anchored Object Marker</dt>
<dd>Extends the nested style up to or through an inline graphic
marker, which appears where an inline graphic is inserted.</dd><p class="dlseparator"></p><dt class="dlterm">Auto Page Number / Section Marker</dt>
<dd>Extends the nested style up to or through the page number
or section name marker.</dd><p class="dlseparator"></p></dl>
</div>
</div></div>
<div id="WS86ADF980-01D4-4414-9CA0-4AED102789D7a" class="nochunk"><a name="WS86ADF980-01D4-4414-9CA0-4AED102789D7a"></a><h3 class="topictitle3">End a nested style</h3><div><div class="section"><p>In
most cases, a nested style ends where the condition of the defined
style is met, such as after three words or where a period appears.
However, you can also end a nested style before the condition is
met using the End Nested Style Here character.</p>
</div>
<ol><li><span>Place the insertion point where you want the nested
style to end.</span></li>
<li><span>Choose Type&#160;&gt; Insert Special Character&#160;&gt;
Other&#160;&gt; End Nested Style Here. </span></li>
</ol>
<div class="section"><p>This character ends the nested style at that point, regardless
of the nested style definition.</p>
</div>
</div></div>
<div id="WS0602BC12-CF95-4e5a-BCDD-305983A978ADa" class="nochunk"><a name="WS0602BC12-CF95-4e5a-BCDD-305983A978ADa"></a><h3 class="topictitle3">Remove the formatting of a nested style</h3><div><ul><li><span>In the Drop Caps And Nested Styles dialog
box, or in the Drop Caps And Nested Styles section of the Paragraph
Style Options dialog box, select the nested style and click Delete.</span></li>
<li><span>Apply a different paragraph style.</span></li>
</ul>
</div></div>

                <div id="related">
                    <div class="separator">&#160;</div>
                    
                    
                </div>
                <div id="footer">
                    <p><img src="images/Community.png" />&#160;<a title="community help (adobe.com)" href="http://www.adobe.com/go/lr_InDesign_community_en">community help (adobe.com)</a></p>
<!-- BEGIN IONCOMMENTS -->
                    <div id="ionComHere">
                    </div>
<!-- END IONCOMMENTS -->
<!--#include virtual="ionComments.ssi" -->
                    <p id="creativecommons"><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" id="creativecommons_text"><img id="creativecommons_img" src="images/CC.png" alt="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License" /></a></p>
                </div>
            </div>
<!-- END CONTENT WRAPPER -->
</td>
</tr>
</table>
        </div>
<!-- END PAGE CONTENT WRAPPER -->
<script type="text/javascript">
<!--[CDATA[
scrollToNameAnchor();
// ]]-->
</script> 
<!--#include virtual="/livedocs/ssi/globalfooter.ssi" -->
<!--#include virtual="/ubi/analytics/analytics_ssi.html" -->
    </body>
</html>